package com.njworkorder.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AssignmentAddDto {

    @Schema(description = "病害模块", requiredMode = Schema.RequiredMode.REQUIRED)
    private String diseaseModule;

    @Schema(description = "病害登记信息id",type = "array")
    private String[] DiseaseRegistrationIds;

    @Schema(description = "巡查信息id")
    private String inspectionInfo;

    @Schema(description = "养护单位id（组织id）")
    private String maintenanceUnitId;

    @Schema(description = "任务单号")
    private String taskOrderNumber;

    @Schema(description = "预估结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date estimatedEndDate;

    @Schema(description = "施工负责人id")
    private String constructionManagerId;

    @Schema(description = "派单日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dispatchDate;

    @Schema(description = "派单人id")
    private String dispatchPersonId;

    @Schema(description = "审核单位id（组织id）")
    private String auditUnitId;

    @Schema(description = "审核人id")
    private String reviewerId;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "附件地址")
    private String appendixes;

    @Schema(description = "数据状态", example = "2为正常状态,6为冻结状态,8为失效状态")
    private String status;
}
